<?php
$this->Html->addCrumb('Schedules', '/Schedule');

?>

<table class="table table-condensed" cellpadding="0" cellspacing="0" id="data">
<tbody>
	<tr>
		<th>Job ID</th>
		<th>Job Name</th>
		<th>Date</th>
		<th>Start Time</th>
		<th>End Time</th>
		<th>Actions</th>
	</tr>
		<?php foreach ($jobs as $job): ?>
		<tr>
				<td><?php echo h($job['0']['JobId']); ?>&nbsp;</td>
				<td><?php echo substr(h($job['0']['JobName']), 2, -3); ?>&nbsp;</td>
				<td><?php echo date("d-m-Y",strtotime(h($job['0']['ScheduleDate']))); ?>&nbsp;</td>
				<td><?php echo date("H:i", strtotime(h($job['0']['VisitStartTime']))); ?>&nbsp;</td>
				<td><?php echo date("H:i", strtotime(h($job['0']['VisitEndTime']))); ?>&nbsp;</td>
				<td><li><?php echo $this->Html->link(__('Details'), array('action' => 'view', $job['0']['JobId'], $job['0']['RequestId'], $job['0']['RequestScheduleId']));?></li></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>